package com.tea.utils;

import java.util.concurrent.atomic.AtomicLong;

public class DefaultNameGenerator {
    private static final String DEFAULT_NAME_PREFIX = "User_";
    private static final AtomicLong counter = new AtomicLong(1);

    public static String generateDefaultName() {
        return DEFAULT_NAME_PREFIX + counter.getAndIncrement();
    }

    // 或者基于时间戳
    public static String generateTimestampBasedName() {
        return DEFAULT_NAME_PREFIX + System.currentTimeMillis();
    }
}
